<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<%@ page language="java" contentType="text/html;  charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Home</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.js"></script>
<script type="text/javascript">
function login(f) {
	if(f.userid.value == "") {alert('아이디를 입력해주세요');}
	else if(f.passwd.value == "") {alert('패스워드를 입력해주세요');}
	else{ f.action="login.do";f.submit();}
}
$(document).ready(function() {
	$("#f").keydown(function(e) {
	    if (e.keyCode == 13){
	    	login(f);
	    }
	});
});
</script>
</head>
<body>
<center>
<div align="right"><a href="memberRegist.do">사용자등록</a></div>
<br><br><br>
<h1 class="form-signin-heading">서비스를 이용하려면 로그인 해주세요</h1>
<br><br>
<div class="container" style="width:340px;">
<form action="/login.do" method="post" class="form-signin" id="f">
<input type="text" id="userid" name="userid" class="form-control" placeholder="아이디">
<input type="password" id="passwd" name="passwd" class="form-control" placeholder="패스워드">
<label class="checkbox" style="text-align:left;text-decoration:n">
<input type="checkbox" value="remember-me">사용자 저장하기
</label>
<button class="btn btn-lg btn-primary btn-block" type="button" onclick="login(f)">로그인</button>
</form>
</div>
<br><br><br>
<P> ${serverTime}. </P>
</center>
</body>
</html>
